package com.dao;

import com.entity.Song;
import com.entity.vo.SongVo;
import com.util.PageUtil;

import java.sql.SQLException;

/**
 * <p>
 * 歌曲 服务类
 * </p>
 *
 * @author lzy
 * @since 2022-03-23
 */
public interface SongService  extends Dao<Song>{

	// 添加一个歌手，返回添加的id
	int addSonger(String songName) throws SQLException, InstantiationException, IllegalAccessException;

	// 添加风格
	int addStyle(String styleName) throws SQLException, InstantiationException, IllegalAccessException;

	// 模糊分页查询歌手/歌名搜索
	PageUtil<SongVo> queryDataBlur(int pageNum, int pageSize, String blur) throws SQLException, InstantiationException, IllegalAccessException;
}
